Synchronous counter

ABSTRACT

There is provided a synchronous counter comprising: at least three or more flip-flops having a chain structure; and at least two or more 2-input EXOR gates interposed in the chain structure, wherein the number of stages of gates interposed between the output of one among the flip-flops and the input of another is one stage of a 2-input EXOR gate even in the most path, thereby shortening the critical path.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a synchronous counter for use in a semiconductor integrated circuit such as MOS memory.

[0003] 2. Description of the Prior Art

[0004]FIG. 4 is a circuit diagram illustrating a binary counter of a typical counter, and FIG. 5 is a circuit diagram illustrating a conventional synchronous counter using an LFSR. In FIGS. 4 and 5, F1-F8, F9-F16 each denote a flip-flop; E1-E7, E8-E10 each denote an exclusive OR circuit or EXOR gate; A1-A6 each denote an AND gate; and N1 denotes a NOT gate.

[0005] Here, a counter is constructed by n flip-flops (n: natural number), which repeat ON/OFF operations appropriately and come back to a primary status in a constant cycle. Though the n flip-flops take 2^(n) states (n-th power of 2, n≧0) at the maximum, a counter using the whole 2^(n) states is a filled code counter, while a counter not using the 2^(n) states all is an unfilled code counter. A representative of the filled code counter is a binary counter.

[0006] On the other hand, there is another classification for counters. That is, a counter provided with n flip-flops each having a class is a weighting counter, while a counter not having a class is a nonweighting counter. It is apparent that the binary counter belongs to the weighting counter, while a representative of the nonweighting counter is a Johnson counter.

[0007] An example of the nonweighting counter that takes 2^(n)-1 states and is infinitely in proximity with the filled code counter is an LFSR (Linear Feedback Shift Register). A shift register is as follows: A number of flip-flops are arranged in a line and the input and output of the neighboring flip-flops are connected with each other so as to be capable of reading the neighboring data. In addition, the LFSR is constructed to apply a feedback to the shift register by an operation circuit including an EXOR gate. There is an advantageous point that the entire circuit scale may be reduced when this LFSR is employed as the counter.

[0008] In the counter employing the LFSR, when a code of a state provided by the counter is considered as a vector, a code conversion to the next state may be considered as a linear map, which may be expressed by a matrix. This matrix is called expression matrix. Where the expression matrix is denoted by A (n×n matrix), a code of a current state is denoted by s (n-th vector), and a code of the next state s' (n-th vector), these are expressed by the following relationship:

s′=A·s  (1)

[0009] The expression matrix A of this case is expressed by the following formula (2): $\begin{matrix} {A = \begin{pmatrix} 0 & 1 & 0 & \cdots & 0 & 0 \\ \quad & 0 & 1 & \cdots & 0 & 0 \\ \cdots & \cdots & \cdots & \quad & \cdots & \cdots \\ 0 & 0 & 0 & \cdots & 1 & 0 \\ 0 & 0 & 0 & \cdots & 0 & 1 \\ a_{n} & a_{n - 1} & a_{n - 2} & \cdots & a_{2} & a_{1} \end{pmatrix}} & (2) \end{matrix}$

[0010] A cycle of the counter corresponding to the expression matrix A is the minimum natural number m satisfying the following formula (3)

(A ^(m))·s=s  (3)

[0011] It is known that the cycle of the expression matrix A is determined by its characteristic polynominal. When a cycle of one characteristic polynominal is the same as that of another, these characteristic polynominals are not always the same as each other. However, when one characteristic polynominal are the same as another, the cycles of these expression matrices are the same as each other. Note that the characteristic polynominal of the matrix A expressed by the formula (2) is Φ(x)=x^(n)−a₁x^((n-1))−. . . −a_(n-1)x−a_(n).

[0012] Further, by way of example, a conventional synchronous counter of FIG. 5 will be described below. This employs an LFSR of n=8. In FIG. 5, F9-F16 each denote a flip-flop; and E8-E10 each denote a 2-input EXOR gate. The outputs of the flip-flops F9-F15 are connected to the inputs of the flip-flops F10-F16, respectively. In addition, the outputs of the flip-flops F12 and F13 are connected to the inputs of the EXOR gate E9, and the outputs of the flip-flops F14 and F16 are connected to the inputs of the EXOR gate E10. Further, the outputs of the EXOR gates E9 and E10 are connected to the inputs of the EXOR gate E8, and the output of the EXOR gate E8 is connected to the input of the flip-flop F9.

[0013] The operation will be next described below.

[0014] Now, when the states of the flip-flops F16-F9 are respectively provided by (00000001) in a sequence of binary numbers, the next states of the flip-flops F16-F9 are transferred to (00000010), and the states after next thereof (00000100), respectively. The states of the flip-flops F16-F9 come back to (00000001) again after 255 clocks. Accordingly, the counter corresponds to a 255 counter.

[0015] Since the conventional synchronous counter by the LFSR is constructed as described above, it must employ the number of EXOR gates corresponding to the number of terms except the highest order of a characteristic polynominal. There is a problem that when the number of the terms is too large, the longest path which connects the output of one flip-flop with the input of another flip-flop, i.e. critical path, is lengthened.

[0016] For example, in the counter as shown in FIG. 5, the path from the output of the flip-flop F12 to the input of the flip-flop F9 corresponds to the critical path, of which the length corresponds to two stages of 2-input EXOR gates.

SUMMARY OF THE INVENTION

[0017] The present invention is implemented to solve the foregoing problems. It is therefor an object of the present invention to provide a synchronous counter having a short critical path with high speed and small scale.

[0018] According to a first aspect of the present invention, there is provided a synchronous counter comprising: at least three or more storage elements having a chain structure; and at least two or more 2-input logic gates interposed in the chain structure, wherein the number of stages of gates interposed between the output of one among the storage elements and the input of another among the storage elements is one stage of a 2-input logic gate even in the most path.

[0019] According to a second aspect of the present invention, there is provided a synchronous counter comprising: a first storage element in which a first signal and a second signal are set to binary values via a set line and a control line, respectively; at least two or more second storage elements capable of setting the second signal to one value via the control line; and at least two or more 2-input logic gates interposed in a chain structure constructed by the first and second storage elements, wherein the number of stages of gates interposed between the output of one among the first and second storage elements and the input of another among the first and second storage elements is one stage of a 2-input logic gate even in the most path.

[0020] Here, the 2-input logic may be constructed by a 2-input EXOR gate.

BRIEF DESCRIPTION OF THE DRAWINGS

[0021]FIG. 1 is a circuit diagram illustrating a synchronous counter in accordance with an embodiment 1 of the present invention;

[0022]FIG. 2 is a circuit diagram illustrating a typical type of the synchronous counter in accordance with the embodiment 1 of the present invention;

[0023]FIG. 3 is a circuit diagram illustrating a synchronous counter changeable to a stand-by operation in accordance with an embodiment 2 of the present invention;

[0024]FIG. 4 is a circuit diagram illustrating a binary counter as a typical counter in the prior art; and

[0025]FIG. 5 is a circuit diagram illustrating a conventional synchronous counter with an LFSR.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] Embodiments of the present invention are described below.

[0027] EMBODIMENT 1

[0028]FIG. 1 is a circuit diagram illustrating a synchronous counter in accordance with an embodiment 1 of the present invention, which corresponds to a mapping of a transposed expression matrix ^(t)A as depicted later. In FIG. 1, F21-F28 each denote a flip-flop (storage element); and E14-E16 each denote an EXOR gate of a 2-input logic gate (logic gate).

[0029] The outputs of the flip-flops F21, F25-F27, and F28 are connected to the outputs of the flip-flops F22, F26-F28, and F21, respectively, and the outputs of the flip-flops F22 and F28 are connected to the inputs of the EXOR gate E14. In addition, the outputs of the flip-flips F23 and F28 are connected to the inputs of the EXOR gate E15, the outputs of the flip-flops F24 and F28 are connected to the inputs of the EXOR gate E16, and the outputs of the EXOR gates E14-E16 are connected to the inputs of the flip-flops F23-F25, respectively.

[0030] Here, the following viewpoint should be considered:

[0031] when one characteristic polynominal of an expression matrix is the same as that of another matrix, the cycles of the counters corresponding to these matrices are the same as each other; accordingly, when among the matrices having the same characteristic formula, the matrix that the factors except zero in each row is fewer is selected, the critical path of circuits can be shortened.

[0032] Thus, the matrix ^(t)A of the expression matrix A in the above-depicted formula (2) will be now considered. Even when a matrix is transposed, its characteristic polynominal is not changed; accordingly, the cycle of the counter corresponding to the matrix ^(t)A comes to be equal to that corresponding to the expression matrix A.

[0033] The transposed matrix ^(t)A is described in the following formula (4): $\begin{matrix} {\quad^{t}A = \begin{pmatrix} 0 & 0 & \cdots & 0 & 0 & a_{n} \\ 1 & 0 & \cdots & 0 & 0 & a_{n - 1} \\ 0 & 1 & \cdots & 0 & 0 & a_{n - 2} \\ \cdots & \cdots & \quad & \cdots & \cdots & \cdots \\ 0 & 0 & \cdots & 1 & 0 & a_{2} \\ 0 & 0 & \cdots & 0 & 1 & a_{1} \end{pmatrix}} & (4) \end{matrix}$

[0034]FIG. 2 illustrates the typical type of a synchronous counter corresponding to the transposed matrix ^(t)A. In FIG. 2, F17-F20 each denote a flip-flop; E11-E13 each denote an EXOR gate; C1-C4 each denote a constant multiplier; and the constants of the C1, C2, C3, and C4 in the characteristic polynominal of the matrix A correspond to a_(n), a_(n-1), a₂, and a₁, respectively. In such a way, when the expression matrix A is transposed to be the expression matrix ^(t)A, the factors except zero in each row of the expression matrix ^(t)A are reduced to two at most. This enables the critical path of the counter to be brought to one stage of 2-input EXOR gate.

[0035] When the conventional synchronous counter as shown in FIG. 5 is considered, this counter employs an LFSR of n=8. Assuming that the states of the flip-flops F16-F9 are provided with (00000001) in a sequence of binary numbers, the next states are transferred to (00000010), and the states after next (00000100), respectively. The states of the flip-flops F16-F9 come back to the state (00000001) again after 255 clocks. Accordingly, this synchronous counter is a 255 counter.

[0036] The expression matrix A which designates a mapping of this counter is expressed in the following formula (5): $\begin{matrix} {A = \begin{pmatrix} 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \\ 1 & 0 & 1 & 1 & 1 & 0 & 0 & 0 \end{pmatrix}} & (5) \end{matrix}$

[0037] This is a companion matrix which have a characteristic polynominal of Φ(x)=x⁸+x⁴+x³+x²+1. Since four among the factors except zero are included in the eighth row of the expression matrix A, the critical path of the synchronous counter is constructed by two stages of 2-input EXOR gate.

[0038] Here, when the expression matrix ^(t)A transposing the expression matrix A is considered, it is provided with the following formula (6): $\begin{matrix} {\quad^{t}A = \begin{pmatrix} 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \\ 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 1 & 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \end{pmatrix}} & (6) \end{matrix}$

[0039] Even when the matrix is transposed, the characteristic polynominal of the transposed matrix is not changed. Accordingly, the characteristic polynominal of the transposed matrix ^(t)A is also Φ(x)=x⁸+x⁴+x³+x²+1. Therefore, the cycle of the counter corresponding to a mapping having the matrix ^(t)A as an expression matrix is also 255 as well as the matrix A. In other words, the synchronous counter corresponding to the mapping in which the expression matrix is ^(t)A corresponds to the circuit of FIG. 1.

[0040] The operation will be next described below.

[0041] When the states of the flip-flops F21-F28 are now provided with (10000000) in a sequence of binary numbers, respectively, the next states are transferred to (01000000), and the states after next (00100000), respectively. Accordingly, the states of the flip-flops F21-F28 come back to (10000000) again after 255 clocks. Accordingly, this counter corresponds to a 255 counter. Then, since each row of the matrix ^(t)A has at most two of the factors except zero, the critical path of the synchronous counter may be constructed by one stage of 2-input EXOR gate. This results in being shorter than the two stages of 2-input EXOR gate before transposing of the matrix A.

[0042] As described above, according to the embodiment 1, a synchronous counter is constructed as follows: Three or more storage elements are arranged in a chain structure, two or more 2-input EXOR gates are interposed among the storage elements, and the number of stages of logic gates interposed between the output of one storage element and the input of another storage element is one stage of a 2-input EXOR gate even in the most path. In such a way, a synchronous counter with high speed and small scale may be achieved.

[0043] EMBODIMENT 2

[0044]FIG. 3 is a circuit diagram illustrating a synchronous counter in accordance with an embodiment 2 of the present invention, and a counter employing an LFSR of n=8. In FIG. 3, F29 denotes a flip-flop with set and reset functions (first storage element); F30-F36 each denote a flip-flop with a reset function (second storage element); E17-E19 each denote an EXOR gate of a 2-input logic gate; 31 designates a control line; and 32 designates a set line.

[0045] Here, the outputs of the flip-flops F29, F33-F35, and F36 are connected to the inputs of the flip-flops F30, F34-F36, and F29, and the outputs of the flip-flops F30 and F36 are connected to the inputs of the EXOR gate E17. The outputs of the flip-flops F31 and F36 are connected to the inputs of the EXOR gate E18, the outputs of the flip-flops F32 and F36 are connected to the inputs of the EXOR gate E19, and further the outputs of the EXOR gates E17-E19 are connected to the inputs of the flip-flops F31-F33, respectively. A set signal is inputted to the flip-flop F29 via the set line 32, while a reset signal is inputted to all the flip-flops F29-F36 via the control line 31.

[0046] The operation will be next described below.

[0047] When both the set and reset signals are “L” level, and the states of the flip-flops F29-F36 are respectively provided with, e.g., (10000000) except (00000000) in a sequence of binary numbers, the next states of the flip-flops F29-F36 are transformed to (01000000), and the states of next thereof (00100000), respectively. Such a procedure takes certain states different from (10000000) till after 254 clocks, and performs an operation of a 255 counter such that the states of the flip-flops F29-F36 come back to (10000000) only after 255 clocks.

[0048] However, when “H” level is inputted to the reset signal, and the states of the flip-flops F29-F36 become (00000000) in a sequence of binary numbers, respectively, the next states also become (00000000), which results in a standby operation instead of the counter operation. This standby operation is maintained till “L” level is inputted to the reset signal and “H” level inputted to the set signal, simultaneously. In the meantime, the standby state is maintained even when the reset signal is either of “L” and “H” levels. A switching operation of transistors is not activated during the standby operation, which serves as a low power consumption mode.

[0049] Note that the transition from the standby operation to the normal counter operation may be performed by bringing the states of the flip-flops F29-F36 to (10000000), respectively, while “L” and “H” levels are inputted as the reset and set signals, respectively

[0050] As described above, according to the embodiment 2, a synchronous counter is constructed as follows: the flip-flops capable of setting the set and reset signals via the set and control lines, respectively, and the flip-flops capable of setting the reset signal via the control line are arranged in a chain structure; two or more 2-input EXOR gates are interposed between the chain structure; the number of stages of logic gates interposed between the output of one storage element and the input of another storage element is one stage of a 2-input EXOR gate even in the most path.

[0051] In such a way, the synchronous counter may take a standby state in which a value of the counter is not changed even when the clock goes ahead; since the control line for a transition to the standby state is connected to all the flip-flops, the counter may be transited to the standby state if a signal for designating the transition to the standby state is inputted to the control line; thereafter, even when another control signal is not inputted to the control line, the standby state may be maintained till a signal for a transition to the counter state is inputted thereto.

[0052] Therefore, the aforementioned synchronous counter with high speed and small scale may be achieved, and further a low power consumption mode may be achieved since the switching operation of the transistors is not activated.

[0053] According to the embodiments 1 and 2, the 2-input EXOR gate as a logic gate is represented as an example, which is not limited to, the same constructions and effects may be obtained by other logic gates having at least 2 or more-inputs. 

What is claimed is:
 1. A synchronous counter comprising: at least three or more storage elements having a chain structure; and at least two or more 2-input logic gates interposed in said chain structure, wherein the number of stages of gates interposed between the output of one among said storage elements and the input of another among said storage elements is one stage of a 2-input logic gate even in the most path.
 2. A synchronous counter comprising: a first storage element in which a first signal and a second signal are set to binary values via a set line and a control line, respectively; at least two or more second storage elements capable of setting said second signal to a certain value via said control line; and at least two or more 2-input logic gates interposed in a chain structure constructed by said first and second storage elements, wherein the number of stages of gates interposed between the output of one among said first and second storage elements and the input of another among said first and second storage elements is one stage of a 2-input logic gate even in the most path.
 3. The synchronous counter according to claim 1, wherein said 2-input logic is constructed by a 2-input EXOR gate.
 4. The synchronous counter according to claim 2, wherein said 2-input logic is constructed by a 2-input EXOR gate. 